package com.example.springbootdemo.constant;

import lombok.Data;

/**
 * @author Gong.Yang
 */
@Data
public class Result {
    private String code;
    private Object data;
    private String msg;

    public Result(String code, Object data, String msg) {
        this.code = code;
        this.data = data;
        this.msg = msg;
    }


    public static Result form(String code, Object data, String msg) {
        return new Result(code, data, msg);
    }
}
